import common from '../vendor/common'
import '../scss/map.scss'
const Vue = common.Vue
mui.plusReady(function(){
    const gps = plus.webview.currentWebview().gps
    const buildingName = plus.webview.currentWebview().buildingName

var app =new Vue({
    el: '#Vuemap',
    data: {
        center: gps,
        buildingName: buildingName,
        keyword: '地铁',
        location:'武汉',
        nearby: {
            center: {
                lng: gps.lng,
                lat: gps.lat
            },
            radius: 10000
        }
    },
    methods: {
        search: function(keyword) {
            if (keyword === '地铁') {
                this.nearby.radius = 10000
            } else if (keyword === '餐厅') {
                this.nearby.radius = 500
            } else {
                this.nearby.radius = 1000
            }
            this.keyword = keyword
        }
    }
})
})
